package com.zmn.oms.business.interfaces.conf.ordertag;

import com.zmn.oms.common.exception.OmsBaseException;
import com.zmn.oms.model.entity.conf.ordertag.ConfOrderTagCategory;
import com.zmn.oms.model.entity.conf.ordertag.ConfOrderTagCategoryQuery;
import com.zmn.oms.model.vo.conf.ordertag.ConfOrderTagCategoryVO;

import java.util.List;

/**
 * 类描述：订单标签分类配置
 *
 * @author liuying
 * @date 2021/08/30 16:10
 */
public interface ConfOrderTagCategoryBService {

    /**
     * 查询配置
     *
     * @param query
     * @return
     */
    List<ConfOrderTagCategoryVO> listPageByQuery(ConfOrderTagCategoryQuery query);

    /**
     * 修改
     *
     * @param category
     */
    void modifyCategoryById(ConfOrderTagCategory category) throws OmsBaseException;

    /**
     * 修改状态
     *
     * @param category
     */
    void modifyCategoryStatusById(ConfOrderTagCategory category) throws OmsBaseException;

    /**
     * 修改sort
     *
     * @param category
     */
    void modifyCategorySortById(ConfOrderTagCategory category);

    /**
     * 新增
     *
     * @param category
     */
    Integer addCategory(ConfOrderTagCategory category) throws OmsBaseException;

}
